/**
 * Copyright ©2016-2020 tianyu education Corporation, All Rights Reserved
 * http://www.whty.com.cn/
 */
package profile.hujia.profile.elasticsearch.study.service;

import profile.hujia.profile.elasticsearch.study.model.SourceEntity;

import java.util.List;

/**
 * class info
 *
 * @author hujia
 * @date 2019-09-10 09:17
 */
public interface SourceService {
    void addSource(SourceEntity sourceEntity) throws Exception;

    void addSourceList (List<SourceEntity> listSourceEntity) throws Exception;

    List<SourceEntity> listAll() throws Exception;

    SourceEntity getDocument(String id) throws Exception;

    void deleteDocument(SourceEntity sourceEntity) throws Exception;

    void deleteDocument(String id) throws Exception;

    void updateDocument(SourceEntity sourceEntity) throws Exception;
    //若document不存在,则会插入document
    void updateDocumentList(List<SourceEntity> listSourceEntity) throws Exception;

    void saveToTxt(String filePath) throws Exception;
}
